package com.thd.springboot.framework.enums;

public enum ResultEnum implements BaseEnum{
    SUCCESS("1"),FAILURE("0");

    private String code;

    ResultEnum(){
        this.code = this.name();
    }

    ResultEnum(String code){
        this.code = code;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getName(){
        return this.name();
    }
}
